package cn.whitecao.sb.test.repository;


import cn.whitecao.sb.test.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author Bashful Huang
 * @since 2020-08-13
 **/
@SuppressWarnings("ALL")
public interface UserRepository extends JpaRepository<User,Long> {
    User getByIdEquals(Long id);
    User getByNameEquals(String name);
}